<?php
error_reporting (E_ALL ^ E_NOTICE);
require_once 'elements/helper.php';
if(empty($_GET)) $_GET['prefix'] = 'ctg';
else $orig_Prefix = $_GET['prefix'];
?>

<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

	<title>Kuner Architekten<?php echo pageTitle($_GET); ?></title>
	<meta name="description" content="Architekten, Architektur, Büro, Architekturbüro, Furtwangen, Triberg, St. Georgen, Villingen, Schwenningen, Freiburg, Stuttgart, Karlsruhe, Schwarzwald, Kuner, Planung, Konzeption, Bauleitung, Sanierung">
	<meta name="author" content="Stephan Pfaff">

	<meta name="viewport" content="width=device-width,initial-scale=1">

	<link rel="stylesheet" href="css/style.css">
	
	<script src="lib/js/libs/modernizr-2.0.6.min.js"></script>
</head>

<body>	
	<div id="container">
		<header>
		</header>
		<div id="main" role="main">
			<?php 
				if(isset($_GET[ctg_id]) && $_GET[ctg_id] != 0) {
					require_once 'elements/categories.php';
					require_once 'elements/projects.php';
					require_once 'elements/buttons.php';
				
			?>
		</div>
		<footer id="footer" class="footer">
			<?php
					require_once 'elements/footer.php';
				}
			?>
		</footer>
	</div> <!--! end of #container -->

	<noscript>
	<?php
		if(!isset($_GET[ctg_id]) || isset($_GET[ctg_id]) && $_GET[ctg_id] == 0) {
			include_once 'elements/intro.php';
		}
	?>
	</noscript>

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="libs/js/libs/jquery-1.7.1.min.js"><\/script>')</script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
<script>window.jQuery || document.write('<script src="libs/js/libs/jquery-ui-1.8.10.custom.min.js"><\/script>')</script>

<!-- scripts concatenated and minified via ant build script-->
<script src="lib/js/plugins.js"></script>
<script src="lib/js/script.js"></script>
<!-- end scripts-->
<?php
	$_GET['prefix'] = $orig_Prefix;
?>
<script type="text/javascript">
/* <![CDATA[ */

	$(window).load(function(){
        init(<?php echo json_encode($_GET); ?>);
    });
    
/* ]]> */
</script>

<!--[if lt IE 7 ]>
	<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.2/CFInstall.min.js"></script>
	<script>window.attachEvent("onload",function(){CFInstall.check({mode:"overlay"})})</script>
<![endif]-->

</body>
</html>
